{
  "properties" : { },
  "id" : "2dd8170011dd4fb08d510032756e9751",
  "script" : null,
  "groupId" : "2af89af3ac544cb4a63077f96d356b97",
  "name" : "查询",
  "createTime" : null,
  "updateTime" : 1667373529743,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "/query",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : null,
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
var sql = """ """;
var fileCatalogue = body.fileCatalogue;
if (fileCatalogue) {
    sql = """ select * from file_upload_record where file_library = #{body.fileLibrary}
        and file_catalogue = #{fileCatalogue}"""
} else {
    sql = """ select * from file_upload_record where file_library = #{body.fileLibrary}"""
}
return db.select(sql)